<%@page import="java.util.List"%>
<%@page import="java.util.Arrays"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
         pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <title>Cabinet</title>
        <link type="text/css" href="<%=request.getContextPath()%>/resources/css/bootstrap.css" rel="stylesheet"/>
        <link type="text/css" href="<%=request.getContextPath()%>/resources/css/bootstrap-theme.css" rel="stylesheet"/>
        <link type="text/css" href="<%=request.getContextPath()%>/resources/css/main.css" rel="stylesheet"/>
       
    </head>
    <body>
        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span12">
                    <fieldset>
                        <legend>User Details</legend>
                        <table class="table table-striped">
                            <tr>
                                <td> Name</td>
                                <td>Address</td>
                            </tr>
                            <tr>
                                <td>${userFacade.profile.fullname}</td>
                                <td>${userFacade.profile.address.street}</td>
                            </tr>    		
                        </table>
                    </fieldset>
                </div>
            </div>
        </div>	
        <p>TESTS</p>

        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span12">
                    <fieldset>
                        <legend>Tests</legend>
                        <table class="table table-striped">
                            <tr>
                                <td> Category</td>
                                <td>Description</td>
                            </tr>
                            <tr>
                                <c:forEach items="${userFacade.tests}" var="test">
                                <tr>
                                   <td> <a href="<%=request.getContextPath()%>/test/${test.testID}.htm">${test.testName}</a>  </td>
                                   <td> ${test.testDescription} </td>
                                </tr>
                            </c:forEach>
                            </tr>    		
                        </table>
                    </fieldset>
                </div>
            </div>
        </div>		



    </body>
</html>